//
//  ContentViewController.m
//  YinYueTai
//
//  Created by CongCong on 15-7-21.
//  Copyright (c) 2015年 CongCong. All rights reserved.
//

#import "ContentViewController.h"

@interface ContentViewController ()

@end

@implementation ContentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIBarButtonItem *item = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:@"backimage"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:self action:@selector(back)];
    self.navigationItem.leftBarButtonItem = item;
    
    LCReadDetailHostViewController *hot = [[LCReadDetailHostViewController alloc]init];
    hot.title = @"            最  热               ";
    hot.type = self.type;
    LCReadDetailNewViewController *new = [[LCReadDetailNewViewController alloc]init];
    new.title = @"            最  新               ";
    new.type = self.type;
    SCNavTabBarController *SCNav = [[SCNavTabBarController alloc]init];
    
    SCNav.subViewControllers = @[new, hot];
    
    [SCNav addParentController:self];
}
- (void)back
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
